package com.graduation.mybatis.service;

import com.graduation.mybatis.bean.User;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 23726
* @description 针对表【user】的数据库操作Service
* @createDate 2025-03-30 17:25:36
*/
public interface UserService extends IService<User> {

    /**
     * 根据 openid 查询用户信息
     *
     * @param openId 用户的唯一标识 (openid)
     * @return 用户对象，如果未找到则返回 null
     */
    User selectUserByOpenId(String openId);

    boolean updateUserById(User user);
}
